package com.tech.connect.api;

import java.io.Serializable;

/**
 * Created by Ksy.
 */

public class UserInfo implements Serializable {

    public long id = -1;
    public String mobile;
    public String realName;
    public String nickName;
    public String headImage;
    public String backgroundImage;
    public int age;
    public String status;
    public int gender;//1表示男 0是女
    public double lat;
    public double lng;
    public String provinceName;
    public String provinceCode;
    public String cityName;
    public String cityCode;
    public String areaName;
    public String areaCode;
    public float height;
    public float weight;
    public int marriage;
    public String marriageName;
    public long educationId;
    public String educationName;
    public String genderName;
    public long occupationCategoryId;
    public String sign;
    public String registerTime;
    public String registerIp;
    public String loginTime;
    public String loginIp;
    public String balance;
    public String createTime;
    public String updateTime;
    public String distance;
    public int isIdentityAuth;
    public int isMobileAuth;
    public int isSkillAuth;
    private static UserInfo baseUserInfo;

    private UserInfo() {
        super();
    }


    public static UserInfo getUserInfo() {
        if (baseUserInfo == null) {
            synchronized (UserInfo.class) {
                if (baseUserInfo == null) {
                    baseUserInfo = new UserInfo();
                    return baseUserInfo;
                }
            }
        }
        return baseUserInfo;
    }


    public void setDataInfoByLogIn(UserInfo info) {
        baseUserInfo = info;
    }

    public void setDataInfoByLogOut() {
        baseUserInfo = null;
    }

}
